package com.hotacorp.opencloud.common.commdata;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置文件中定义的匿名访问URL
 * @author lwg
 *
 */
@ConfigurationProperties(prefix = "security.oauth2")
public class PermitUrlProperties {

	private static final String[] ENDPOINTS = {};

	private String[] ignored;

	public String[] getIgnored() {
		if (this.ignored == null) {
			return ENDPOINTS;
		} else {
			return this.ignored;
		}
	}

	public void setIgnored(String[] ignored) {
		this.ignored = ignored;
	}

}
